<?php

namespace Database\Seeders;

use DB;
use Dcat\Admin\Models;
use Illuminate\Database\Seeder;

class AdminTablesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // base tables
        Models\Menu::truncate();
        Models\Menu::insert(
            [
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "extension" => "",
                    "icon" => "feather icon-bar-chart-2",
                    "id" => 1,
                    "order" => 1,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "首页",
                    "updated_at" => "2023-06-17 09:46:27",
                    "uri" => "/"
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "extension" => "",
                    "icon" => "feather icon-settings",
                    "id" => 2,
                    "order" => 5,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "系统管理",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => NULL
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "extension" => "",
                    "icon" => NULL,
                    "id" => 3,
                    "order" => 6,
                    "parent_id" => 2,
                    "show" => 1,
                    "title" => "管理员",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "auth/users"
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "extension" => "",
                    "icon" => NULL,
                    "id" => 4,
                    "order" => 7,
                    "parent_id" => 2,
                    "show" => 1,
                    "title" => "角色",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "auth/roles"
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "extension" => "",
                    "icon" => NULL,
                    "id" => 5,
                    "order" => 8,
                    "parent_id" => 2,
                    "show" => 1,
                    "title" => "权限",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "auth/permissions"
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "extension" => "",
                    "icon" => NULL,
                    "id" => 6,
                    "order" => 9,
                    "parent_id" => 2,
                    "show" => 1,
                    "title" => "菜单",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "auth/menu"
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "extension" => "",
                    "icon" => NULL,
                    "id" => 7,
                    "order" => 10,
                    "parent_id" => 2,
                    "show" => 1,
                    "title" => "扩展",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "auth/extensions"
                ],
                [
                    "created_at" => "2023-06-17 10:17:25",
                    "extension" => "",
                    "icon" => "fa-user",
                    "id" => 8,
                    "order" => 11,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "用户管理",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "/users"
                ],
                [
                    "created_at" => "2023-06-17 10:56:04",
                    "extension" => "",
                    "icon" => "fa-align-justify",
                    "id" => 9,
                    "order" => 12,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "商品管理",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "/products"
                ],
                [
                    "created_at" => "2023-06-17 15:06:41",
                    "extension" => "",
                    "icon" => "fa-calendar",
                    "id" => 10,
                    "order" => 13,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "订单管理",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "/orders"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "extension" => "celaraze.dcat-extension-plus",
                    "icon" => "feather icon-settings",
                    "id" => 15,
                    "order" => 14,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "后台配置",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "dcat-plus/site"
                ],
                [
                    "created_at" => "2023-06-18 08:56:12",
                    "extension" => "dcat-admin.operation-log",
                    "icon" => "fa-wpforms",
                    "id" => 16,
                    "order" => 15,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "操作日志",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "auth/operation-logs"
                ],
                [
                    "created_at" => "2023-06-19 23:08:46",
                    "extension" => "",
                    "icon" => "fa-adjust",
                    "id" => 17,
                    "order" => 16,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "扩展商店",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "/dcat-extension-client"
                ],
                [
                    "created_at" => "2023-06-19 23:14:05",
                    "extension" => "ll.dcat-env",
                    "icon" => "",
                    "id" => 18,
                    "order" => 17,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "系统环境变量",
                    "updated_at" => "2023-06-19 23:43:29",
                    "uri" => "dcat-env"
                ],
                [
                    "created_at" => "2023-06-19 23:44:10",
                    "extension" => "jyil.crontab",
                    "icon" => "fa-gears",
                    "id" => 22,
                    "order" => 18,
                    "parent_id" => 0,
                    "show" => 1,
                    "title" => "定时任务",
                    "updated_at" => "2023-06-19 23:44:10",
                    "uri" => ""
                ],
                [
                    "created_at" => "2023-06-19 23:44:10",
                    "extension" => "jyil.crontab",
                    "icon" => "fa-tasks",
                    "id" => 23,
                    "order" => 19,
                    "parent_id" => 22,
                    "show" => 1,
                    "title" => "任务列表",
                    "updated_at" => "2023-06-19 23:44:10",
                    "uri" => "auth/crontabs"
                ],
                [
                    "created_at" => "2023-06-19 23:44:10",
                    "extension" => "jyil.crontab",
                    "icon" => "fa-file-text-o",
                    "id" => 24,
                    "order" => 20,
                    "parent_id" => 22,
                    "show" => 1,
                    "title" => "日志列表",
                    "updated_at" => "2023-06-19 23:44:10",
                    "uri" => "auth/crontab-logs"
                ]
            ]
        );

        Models\Permission::truncate();
        Models\Permission::insert(
            [
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "http_method" => "",
                    "http_path" => "",
                    "id" => 1,
                    "name" => "Auth management",
                    "order" => 1,
                    "parent_id" => 0,
                    "slug" => "auth-management",
                    "updated_at" => NULL
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "http_method" => "",
                    "http_path" => "/auth/users*",
                    "id" => 2,
                    "name" => "Users",
                    "order" => 2,
                    "parent_id" => 1,
                    "slug" => "users",
                    "updated_at" => NULL
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "http_method" => "",
                    "http_path" => "/auth/roles*",
                    "id" => 3,
                    "name" => "Roles",
                    "order" => 3,
                    "parent_id" => 1,
                    "slug" => "roles",
                    "updated_at" => NULL
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "http_method" => "",
                    "http_path" => "/auth/permissions*",
                    "id" => 4,
                    "name" => "Permissions",
                    "order" => 4,
                    "parent_id" => 1,
                    "slug" => "permissions",
                    "updated_at" => NULL
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "http_method" => "",
                    "http_path" => "/auth/menu*",
                    "id" => 5,
                    "name" => "Menu",
                    "order" => 5,
                    "parent_id" => 1,
                    "slug" => "menu",
                    "updated_at" => NULL
                ],
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "http_method" => "",
                    "http_path" => "/auth/extensions*",
                    "id" => 6,
                    "name" => "Extension",
                    "order" => 6,
                    "parent_id" => 1,
                    "slug" => "extension",
                    "updated_at" => NULL
                ],
                [
                    "created_at" => "2023-06-17 10:34:08",
                    "http_method" => "",
                    "http_path" => "/users*",
                    "id" => 7,
                    "name" => "用户管理",
                    "order" => 7,
                    "parent_id" => 0,
                    "slug" => "user",
                    "updated_at" => "2023-06-17 10:34:08"
                ]
            ]
        );

        Models\Role::truncate();
        Models\Role::insert(
            [
                [
                    "created_at" => "2023-06-17 01:37:13",
                    "id" => 1,
                    "name" => "Administrator",
                    "slug" => "administrator",
                    "updated_at" => "2023-06-17 01:37:13"
                ],
                [
                    "created_at" => "2023-06-17 10:35:50",
                    "id" => 2,
                    "name" => "运营",
                    "slug" => "operator",
                    "updated_at" => "2023-06-17 10:35:50"
                ]
            ]
        );

        Models\Setting::truncate();
        Models\Setting::insert(
            [
                [
                    "created_at" => "2023-06-17 18:57:08",
                    "slug" => "app_secret",
                    "updated_at" => "2023-06-17 18:58:28",
                    "value" => "34e52ab7ccb3022ab28b354ebf33763f"
                ],
                [
                    "created_at" => "2023-06-17 18:57:08",
                    "slug" => "appid",
                    "updated_at" => "2023-06-17 18:58:28",
                    "value" => "wxd62733ece1516745"
                ],
                [
                    "created_at" => "2023-06-18 08:56:30",
                    "slug" => "dcat-admin:operation-log",
                    "updated_at" => "2023-06-18 08:56:30",
                    "value" => "{\"except\":[],\"allowed_methods\":[],\"secret_fields\":[]}"
                ],
                [
                    "created_at" => "2023-06-19 23:10:42",
                    "slug" => "footer_remove",
                    "updated_at" => "2023-06-19 23:10:42",
                    "value" => "1"
                ],
                [
                    "created_at" => "2023-06-19 23:10:42",
                    "slug" => "grid_row_actions_right",
                    "updated_at" => "2023-06-19 23:10:42",
                    "value" => "0"
                ],
                [
                    "created_at" => "2023-06-18 11:09:50",
                    "slug" => "helpers",
                    "updated_at" => "2023-06-18 11:29:22",
                    "value" => "{\"enable\":1}"
                ],
                [
                    "created_at" => "2023-06-17 18:57:08",
                    "slug" => "key",
                    "updated_at" => "2023-06-17 18:58:28",
                    "value" => "2d165b6c001043655b4tyyc202355445"
                ],
                [
                    "created_at" => "2023-06-18 11:09:50",
                    "slug" => "lang",
                    "updated_at" => "2023-06-18 11:30:06",
                    "value" => "zh_CN"
                ],
                [
                    "created_at" => "2023-06-18 11:09:50",
                    "slug" => "layout",
                    "updated_at" => "2023-06-18 11:28:50",
                    "value" => "{\"body_class\":[\"horizontal_menu\"],\"color\":\"blue\",\"sidebar_style\":\"light\",\"horizontal_menu\":true}"
                ],
                [
                    "created_at" => "2023-06-18 11:09:50",
                    "slug" => "logo",
                    "updated_at" => "2023-06-18 11:09:50",
                    "value" => "<b>Laravel</b> Shop"
                ],
                [
                    "created_at" => "2023-06-18 11:09:50",
                    "slug" => "logo-mini",
                    "updated_at" => "2023-06-18 11:09:50",
                    "value" => "<b>LS1</b>"
                ],
                [
                    "created_at" => "2023-06-17 18:57:08",
                    "slug" => "mch_id",
                    "updated_at" => "2023-06-17 18:58:28",
                    "value" => "1646821086"
                ],
                [
                    "created_at" => "2023-06-19 23:10:42",
                    "slug" => "sidebar_style",
                    "updated_at" => "2023-06-19 23:11:13",
                    "value" => "default"
                ],
                [
                    "created_at" => "2023-06-19 23:09:38",
                    "slug" => "site_debug",
                    "updated_at" => "2023-06-19 23:21:13",
                    "value" => "1"
                ],
                [
                    "created_at" => "2023-06-19 23:09:38",
                    "slug" => "site_lang",
                    "updated_at" => "2023-06-19 23:09:49",
                    "value" => "zh_CN"
                ],
                [
                    "created_at" => "2023-06-19 23:09:38",
                    "slug" => "site_logo",
                    "updated_at" => "2023-06-19 23:21:13",
                    "value" => ""
                ],
                [
                    "created_at" => "2023-06-19 23:09:38",
                    "slug" => "site_logo_mini",
                    "updated_at" => "2023-06-19 23:21:13",
                    "value" => ""
                ],
                [
                    "created_at" => "2023-06-19 23:09:38",
                    "slug" => "site_logo_text",
                    "updated_at" => "2023-06-19 23:10:24",
                    "value" => "Laravel Shop"
                ],
                [
                    "created_at" => "2023-06-19 23:09:38",
                    "slug" => "site_title",
                    "updated_at" => "2023-06-19 23:30:36",
                    "value" => "Example"
                ],
                [
                    "created_at" => "2023-06-19 23:09:38",
                    "slug" => "site_url",
                    "updated_at" => "2023-06-19 23:09:38",
                    "value" => ""
                ],
                [
                    "created_at" => "2023-06-19 23:07:50",
                    "slug" => "sparkinzy:dcat-extension-client",
                    "updated_at" => "2023-06-19 23:07:50",
                    "value" => "{\"path\":\"dcat-extension-client\"}"
                ],
                [
                    "created_at" => "2023-06-19 23:10:42",
                    "slug" => "theme_color",
                    "updated_at" => "2023-06-19 23:21:51",
                    "value" => "blue-light"
                ],
                [
                    "created_at" => "2023-06-18 11:09:50",
                    "slug" => "web-name",
                    "updated_at" => "2023-06-18 11:09:50",
                    "value" => "Example后台管理"
                ]
            ]
        );

        Models\Extension::truncate();
        Models\Extension::insert(
            [
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "id" => 1,
                    "is_enabled" => 1,
                    "name" => "celaraze.dcat-extension-plus",
                    "options" => NULL,
                    "updated_at" => "2023-06-17 16:15:20",
                    "version" => "1.1.1"
                ],
                [
                    "created_at" => "2023-06-18 08:56:12",
                    "id" => 2,
                    "is_enabled" => 1,
                    "name" => "dcat-admin.operation-log",
                    "options" => NULL,
                    "updated_at" => "2023-06-18 08:56:18",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:07:07",
                    "id" => 3,
                    "is_enabled" => 1,
                    "name" => "sparkinzy.dcat-extension-client",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:07:18",
                    "version" => "1.0.1"
                ],
                [
                    "created_at" => "2023-06-19 23:12:19",
                    "id" => 4,
                    "is_enabled" => 1,
                    "name" => "lty5240.dcat-easy-sku",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:15:13",
                    "version" => "1.1.0"
                ],
                [
                    "created_at" => "2023-06-19 23:13:24",
                    "id" => 5,
                    "is_enabled" => 1,
                    "name" => "weiaibaicai.dcat-exception-reporter",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:15:11",
                    "version" => "1.0.2"
                ],
                [
                    "created_at" => "2023-06-19 23:14:05",
                    "id" => 6,
                    "is_enabled" => 1,
                    "name" => "ll.dcat-env",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:15:15",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "id" => 7,
                    "is_enabled" => 1,
                    "name" => "sparkinzy.dcat-distpicker",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:16:12",
                    "version" => "1.0.10"
                ],
                [
                    "created_at" => "2023-06-19 23:44:10",
                    "id" => 8,
                    "is_enabled" => 1,
                    "name" => "jyil.crontab",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:44:12",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:46:27",
                    "id" => 9,
                    "is_enabled" => 0,
                    "name" => "weiwait.dcat-vue",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:46:27",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:59:14",
                    "id" => 11,
                    "is_enabled" => 1,
                    "name" => "weiwait.dcat-easy-sms",
                    "options" => NULL,
                    "updated_at" => "2023-06-19 23:59:16",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-20 00:00:08",
                    "id" => 12,
                    "is_enabled" => 1,
                    "name" => "weiwait.dcat-smtp",
                    "options" => NULL,
                    "updated_at" => "2023-06-20 00:00:15",
                    "version" => "1.0.0"
                ]
            ]
        );

        Models\ExtensionHistory::truncate();
        Models\ExtensionHistory::insert(
            [
                [
                    "created_at" => "2023-06-17 15:45:36",
                    "detail" => "create_opration_log_table.php",
                    "id" => 1,
                    "name" => "dcat-admin.operation-log",
                    "type" => 2,
                    "updated_at" => "2023-06-17 15:45:36",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-17 16:05:28",
                    "detail" => "create_admin_extension_repository_table.php",
                    "id" => 2,
                    "name" => "sparkinzy.dcat-extension-client",
                    "type" => 2,
                    "updated_at" => "2023-06-17 16:05:28",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "原始版本发布",
                    "id" => 3,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "增加调试模式开关 & 侧栏子菜单缩进增加",
                    "id" => 4,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.1"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "扩展表单字段 selectCreate 为 select 字段的升级版，支持快速创建。",
                    "id" => 5,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.2"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "增加扩展图标和别名。",
                    "id" => 6,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.3"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "增加表单提交预处理过滤，防止XSS攻击。",
                    "id" => 7,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.4"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "优化表单提交预处理过滤，不再依赖第三方包。",
                    "id" => 8,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.5"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "selectCreate组件的颜色改为主题色。",
                    "id" => 9,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.6"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "UI增加表格行操作按钮紧贴最右侧。",
                    "id" => 10,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.6"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "支持DcatAdmin 2.0.18beta。",
                    "id" => 11,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.7"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "暂时移除侧栏菜单子菜单缩进（不兼容）。",
                    "id" => 12,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.7"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "增加水平菜单选项。",
                    "id" => 13,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.7"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "原先的头部块状显示改为边距优化",
                    "id" => 14,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.7"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "提供了自定义颜色的支持入口",
                    "id" => 15,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.8"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "移除HTML、JS过滤",
                    "id" => 16,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.9"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "移除部分UI优化",
                    "id" => 17,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.0.9"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "修复debug配置无效的问题",
                    "id" => 18,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.1.0"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "自动注入扩展字段",
                    "id" => 19,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.1.0"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "移除了一些无用的配置",
                    "id" => 20,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.1.0"
                ],
                [
                    "created_at" => "2023-06-17 16:15:13",
                    "detail" => "增加详情页视频扩展字段",
                    "id" => 21,
                    "name" => "celaraze.dcat-extension-plus",
                    "type" => 1,
                    "updated_at" => "2023-06-17 16:15:13",
                    "version" => "1.1.1"
                ],
                [
                    "created_at" => "2023-06-18 08:56:12",
                    "detail" => "Initialize extension.",
                    "id" => 22,
                    "name" => "dcat-admin.operation-log",
                    "type" => 1,
                    "updated_at" => "2023-06-18 08:56:12",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:06:26",
                    "detail" => "AdminExtensionsTableSeeder.php",
                    "id" => 23,
                    "name" => "sparkinzy.dcat-extension-client",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:06:26",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:07:07",
                    "detail" => "Dcat扩展市场.",
                    "id" => 24,
                    "name" => "sparkinzy.dcat-extension-client",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:07:07",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:07:07",
                    "detail" => "优化表现层",
                    "id" => 25,
                    "name" => "sparkinzy.dcat-extension-client",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:07:07",
                    "version" => "1.0.1"
                ],
                [
                    "created_at" => "2023-06-19 23:07:07",
                    "detail" => "AdminExtensionsTableSeeder.php",
                    "id" => 26,
                    "name" => "sparkinzy.dcat-extension-client",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:07:07",
                    "version" => "1.0.2"
                ],
                [
                    "created_at" => "2023-06-19 23:12:19",
                    "detail" => "Initialize extension.",
                    "id" => 27,
                    "name" => "lty5240.dcat-easy-sku",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:12:19",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:12:19",
                    "detail" => "修复attrs超过两个会不显示的问题",
                    "id" => 28,
                    "name" => "lty5240.dcat-easy-sku",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:12:19",
                    "version" => "1.0.1"
                ],
                [
                    "created_at" => "2023-06-19 23:12:19",
                    "detail" => "更新了上传图片样式",
                    "id" => 29,
                    "name" => "lty5240.dcat-easy-sku",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:12:19",
                    "version" => "1.0.1"
                ],
                [
                    "created_at" => "2023-06-19 23:12:19",
                    "detail" => "新增快速批量插入输入框的数值",
                    "id" => 30,
                    "name" => "lty5240.dcat-easy-sku",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:12:19",
                    "version" => "1.1.0"
                ],
                [
                    "created_at" => "2023-06-19 23:13:24",
                    "detail" => "Initialize extension.",
                    "id" => 31,
                    "name" => "weiaibaicai.dcat-exception-reporter",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:13:24",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:13:24",
                    "detail" => "Format time display.",
                    "id" => 32,
                    "name" => "weiaibaicai.dcat-exception-reporter",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:13:24",
                    "version" => "1.0.1"
                ],
                [
                    "created_at" => "2023-06-19 23:13:24",
                    "detail" => "alter use",
                    "id" => 33,
                    "name" => "weiaibaicai.dcat-exception-reporter",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:13:24",
                    "version" => "1.0.2"
                ],
                [
                    "created_at" => "2023-06-19 23:13:24",
                    "detail" => "2022_01_14_093841_create_exception_reporters_table.php",
                    "id" => 34,
                    "name" => "weiaibaicai.dcat-exception-reporter",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:13:24",
                    "version" => "2.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:14:05",
                    "detail" => "Initialize extension.",
                    "id" => 35,
                    "name" => "ll.dcat-env",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:14:05",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "Initialize dcat-dispicker.",
                    "id" => 36,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "修改文档",
                    "id" => 37,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.1"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "修复js引用",
                    "id" => 38,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.2"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "修复Grid filter",
                    "id" => 39,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.3"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "修复Grid filter的一些问题",
                    "id" => 40,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.4"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "通过level()控制展示的级别",
                    "id" => 41,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.4"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "filter默认展开省市区",
                    "id" => 42,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.5"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "修复表单编辑回显",
                    "id" => 43,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.6"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "更新地址库至2021.10.10版本",
                    "id" => 44,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.7"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "优化地址库",
                    "id" => 45,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.8"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "优化地址库ID",
                    "id" => 46,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.9"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "新增code筛选",
                    "id" => 47,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.10"
                ],
                [
                    "created_at" => "2023-06-19 23:15:55",
                    "detail" => "新增地域的数据库文件",
                    "id" => 48,
                    "name" => "sparkinzy.dcat-distpicker",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:15:55",
                    "version" => "1.0.10"
                ],
                [
                    "created_at" => "2023-06-19 23:22:41",
                    "detail" => "create_sms_configs_table.php",
                    "id" => 49,
                    "name" => "weiwait.dcat-easy-sms",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:22:41",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:22:42",
                    "detail" => "create_smtp_configs_table.php",
                    "id" => 50,
                    "name" => "weiwait.dcat-smtp",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:22:42",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:41:41",
                    "detail" => "create_crontab_table.php",
                    "id" => 51,
                    "name" => "jyil.crontab",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:41:41",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:44:10",
                    "detail" => "定时任务.",
                    "id" => 52,
                    "name" => "jyil.crontab",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:44:10",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:46:27",
                    "detail" => "Initialize extension.",
                    "id" => 53,
                    "name" => "weiwait.dcat-vue",
                    "type" => 1,
                    "updated_at" => "2023-06-19 23:46:27",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:46:28",
                    "detail" => "create_weiwait_uploads_table.php",
                    "id" => 54,
                    "name" => "weiwait.dcat-vue",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:46:28",
                    "version" => "1.1.0"
                ],
                [
                    "created_at" => "2023-06-19 23:49:02",
                    "detail" => "create_filesystem_configs_table.php",
                    "id" => 56,
                    "name" => "weiwait.dcat-vue",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:49:02",
                    "version" => "1.1.0"
                ],
                [
                    "created_at" => "2023-06-19 23:59:05",
                    "detail" => "create_sms_gateways_table.php",
                    "id" => 57,
                    "name" => "weiwait.dcat-easy-sms",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:59:05",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-19 23:59:14",
                    "detail" => "SmsGatewaysTableSeeder.php",
                    "id" => 58,
                    "name" => "weiwait.dcat-easy-sms",
                    "type" => 2,
                    "updated_at" => "2023-06-19 23:59:14",
                    "version" => "1.0.0"
                ],
                [
                    "created_at" => "2023-06-20 00:00:08",
                    "detail" => "Initialize extension.",
                    "id" => 59,
                    "name" => "weiwait.dcat-smtp",
                    "type" => 1,
                    "updated_at" => "2023-06-20 00:00:08",
                    "version" => "1.0.0"
                ]
            ]
        );

        // pivot tables
        DB::table('admin_permission_menu')->truncate();
        DB::table('admin_permission_menu')->insert(
            [
                [
                    "created_at" => "2023-06-17 10:39:47",
                    "menu_id" => 1,
                    "permission_id" => 7,
                    "updated_at" => "2023-06-17 10:39:47"
                ],
                [
                    "created_at" => "2023-06-17 10:38:20",
                    "menu_id" => 8,
                    "permission_id" => 7,
                    "updated_at" => "2023-06-17 10:38:20"
                ]
            ]
        );

        DB::table('admin_role_menu')->truncate();
        DB::table('admin_role_menu')->insert(
            [
                [
                    "created_at" => "2023-06-17 10:35:50",
                    "menu_id" => 1,
                    "role_id" => 2,
                    "updated_at" => "2023-06-17 10:35:50"
                ],
                [
                    "created_at" => "2023-06-17 10:35:50",
                    "menu_id" => 8,
                    "role_id" => 2,
                    "updated_at" => "2023-06-17 10:35:50"
                ]
            ]
        );

        DB::table('admin_role_permissions')->truncate();
        DB::table('admin_role_permissions')->insert(
            [
                [
                    "created_at" => "2023-06-17 10:35:50",
                    "permission_id" => 7,
                    "role_id" => 2,
                    "updated_at" => "2023-06-17 10:35:50"
                ]
            ]
        );

        // finish
    }
}
